{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">往年学生评语</p>
                </div>
                   <div class="box-body">
                     <div class="form-group col-sm-4">
                          <label class="col-sm-5 control-label" style="font-weight:500;">
                               学年学期：
                          </label>
                          <div class="input-group col-sm-7 col-xs-12">
                               <select class="form-control" style="padding:0;" name="semester_id">
								{%foreach from=$semester_lists key=key item=value%}
                                      <option value="{%$value.semester_id%}"{%if $value.semester_id == $semester_id%}selected{%/if%}>{%$value.semester_name%}</option>
                                {%/foreach%}
                                </select>
                          </div> 
                     </div>
					 <div class="form-group col-sm-6">
                          <label class="col-sm-3 control-label text-right" style="font-weight:500;">
                               班级：
                          </label>
                          <div class="input-group col-sm-3 col-xs-12" style=" float:left; margin-right:6px;">
                               <select class="form-control" style="padding:0;" name="class_id">
								{%foreach from=$appoint_lists key=key item=value%}
                                      <option value="{%$value.class_id%}"{%if $value.class_id == $class_id%}selected{%/if%}>{%$value.class_name%}</option>
                                {%/foreach%}
                                </select>
                          </div> 
						  <input type="hidden" name="message_type" value="{%$message_type%}">
						  <input type="hidden" name="a" value="message.semesterlist">
                          <button type="submit" class="btn btn-primary">查 看</button>
                     </div>
                        <table class="table table-bordered table-striped" id="mytable">
                                <thead>
                                    <tr style="background-color:#a273ff;">
                                        <td>学号</td>
                                        <td>姓名</td>
										<td>评语内容</td>
										<td width="100">操作</td>
                                    </tr>
                                </thead>
                                <tbody>
								{%foreach from=$divide_lists key=key item=value%}
                                    <tr>
									    <td>{%$value.student_no%}</td>
                                        <td>{%$value.student_name%}</td>
										<td>{%$value.message_content%}</td>
										<td>
                                        	<a href="index.php?a=message.details&message_id={%$value.message_id%}&student_id={%$value.student_id%}&semesterlist_type=wangnian" class="btn btn-success btn-sm" title="查看"><i class="fa fa-search"></i></a>
                                         </td>
                                    </tr>	
                                {%/foreach%}  	
                            </tbody>
                        </table>                     
				   </div><!--box-body -->
				   <div class="box-footer">
				   {%$page%}
				   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>            
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
